<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>
    <h1>使用a标签直接指向服务器上的资源</h1>
    <a href="download/a.flv">a.flv</a><br>
    <a href="download/a.jpg">a.jpg</a><br>
    <a href="download/a.mp3">a.mp3</a><br>
    <a href="download/a.mp4">a.mp4</a><br>
    <a href="download/a.txt">a.txt</a><br>
    <a href="download/a.zip">a.zip</a><br>
    <h1>使用服务器端编码的方式实现文件下载</h1>
    <a href="downloadServlet2?filename=a.flv">a.flv</a><br>
    <a href="downloadServlet2?filename=a.jpg">a.jpg</a><br>
    <a href="downloadServlet2?filename=a.mp3">a.mp3</a><br>
    <a href="downloadServlet2?filename=a.mp4">a.mp4</a><br>
    <a href="downloadServlet2?filename=a.txt">a.txt</a><br>
    <a href="downloadServlet2?filename=a.zip">a.zip</a><br>
    <a href="downloadServlet2?filename=美女.jpg">美女.jpg</a><br>
</body>
</html>